#!/bin/bash

do_apply_branding()
{
    BRANDING_FILE="./rancher-branding.yaml"
   
    # Check if the branding file exists
    if [ ! -f "$BRANDING_FILE" ]; then
        echo "Error: Branding file $BRANDING_FILE not found."
        return 1
    fi
    # Apply the branding configuration
    kubectl apply -f "$BRANDING_FILE"
    if [ $? -eq 0 ]; then
        echo "Branding applied successfully."
    else
        echo "Error: Failed to apply branding."
        return 1
    fi
}

do_apply_branding
